/**
 * Created by wuhaiyang on 2017/4/11.
 */

import React, {Component} from 'react'

import {
    Navigator
} from 'react-native'
import SplashPage from './page/SplashPage'
export default class SetUp extends Component {
    constructor(props) {
        super(props)
    }

    renderScene(route, navigator) {
        let Component = route.component
        return <Component navigator={navigator} {...route.params}/>
    }

    render() {
        return (
            <Navigator
                initialRoute={{component:SplashPage}}
                renderScene={(route,navigator)=>this.renderScene(route,navigator)}/>
        )
    }
}

